import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:juming_test/config/home_images.dart';

class HomeQuickSection extends StatelessWidget {
  const HomeQuickSection({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      child: Wrap(
        runSpacing: 8.w,
        children: [
          _buildQuickSectionButton(HomeImages.homeQuickYkjPng),
          _buildQuickSectionButton(HomeImages.homeQuickYmzcPng),
          _buildQuickSectionButton(HomeImages.homeQuickYmjjPng),
          _buildQuickSectionButton(HomeImages.homeQuickYmqzPng),
        ],
      ),
    );
  }

  // 构建快捷入口按钮
  Widget _buildQuickSectionButton(String imagePath) {
    return GestureDetector(
      child: Image.asset(
        imagePath,
        width: 190.w,
        height: 65.w,
        fit: BoxFit.contain,
      ),
      onTap: () {},
    );
  }
}
